]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Stop using nested test backend
authorJonas Ådahl <jadahl@gmail.com>
Sun, 16 Jun 2024 20:28:51 +0000 (22:28 +0200)
committerSebastian Wick <sebastian.wick@redhat.com>
Fri, 21 Jun 2024 19:03:07 +0000 (21:03 +0200)
It is replaced with a new test backend that uses the native backend
running in headless mode.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3373>

.gitlab-ci.yml
src/st/test-theme.c

index ff98c85034879eb14d5354356165d38ca36e0554..41161caefdf5dbc7ea88b73fc67da69cd3564877 100644 (file)
@@ -215,8 +215,9 @@ test:
   before_script:
     - sudo meson install -C mutter/build
     - mkdir -m 700 $XDG_RUNTIME_DIR
+    - mkdir -m 1777 /tmp/.X11-unix
   script:
-    - dbus-run-session -- xvfb-run meson test -C build --no-rebuild --timeout-multiplier 5
+    - dbus-run-session -- meson test -C build --no-rebuild --timeout-multiplier 5
   artifacts:
     expire_in: 1 day
     paths:
@@ -289,8 +290,9 @@ dist:
   before_script:
     - sudo meson install -C mutter/build
     - mkdir -m 700 $XDG_RUNTIME_DIR
+    - mkdir -m 1777 /tmp/.X11-unix
   script:
-    - dbus-run-session xvfb-run meson dist -C build --include-subprojects
+    - dbus-run-session meson dist -C build --include-subprojects
   rules:
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
       changes:
index 9cf5c3d329754f84d8b4ef61d9f8e6d856694223..f8f958bde47db0e40d4e69195cae40f36b4526c7 100644 (file)
@@ -550,7 +550,7 @@ main (int argc, char **argv)
   /* meta_init() cds to $HOME */
   cwd = g_get_current_dir ();
 
-  context = meta_create_test_context (META_CONTEXT_TEST_TYPE_NESTED,
+  context = meta_create_test_context (META_CONTEXT_TEST_TYPE_TEST,
                                       META_CONTEXT_TEST_FLAG_NONE);
   if (!meta_context_configure (context, &argc, &argv, &error))
     g_error ("Failed to configure: %s", error->message);